home *** CD-ROM | disk | FTP | other *** search
- xt - eXecute over Tree
- Version 1.0
- Chris Dunford
-
- Use
- ---
- XT is a simple program that repeatedly executes commands over an
- entire directory tree, or over any specified subtree. Usage is:
-
- xt [d:]path command [args]
-
- For example:
-
- xt \db dir *.*
-
- "XT", of course, runs the XT program. The "\db" tells XT to
- start its directory search at directory "\db" of the current
- drive. The "dir *.*" is just a normal "dir *.*". XT will
- descend through the directory tree beginning at directory \DB,
- and issue a "dir *.*" command for each subdirectory found.
-
- If the directory tree were as follows:
-
- \--+---dir1
- |
- +---db
- | +--dbprgs
- | +--dbdata
- |
- +---dir2
-
- then XT would issue the following commands:
-
- cd \db\dbprgs
- dir *.*
- cd \db\dbdata
- dir *.*
- cd \db
- dir *.*
- cd <the current dir at the time xt was executed>
-
- If you wish to execute a command over an entire disk, use the
- "\" root directory:
-
- xt c:\ dir
-
- would display a list of all files on the disk (by issuing a DIR
- command in each subdirectory).
-
-
- Notes
- -----
- 1. You can use DOS's "." and ".." terminology to refer to the
- current directory and the current parent, respectively:
-
- xt . command (start search in current dir)
- xt .. command (start search in current dir's parent)
-
- 2. XT works by changing directories repeatedly. If you cancel XT
- before it is finished (via Ctrl-Break), you may find that your
- current directory has changed.
-
- 3. XT will use a secondary copy of the command processor
- (COMMAND.COM or the current COMSPEC) if the command meets
- any of these criteria:
-
- a. It is an internal DOS command.
- b. It contains piping or redirection.
- c. It is a batch file.
- d. The command contains ANY explicit extension.
- e. XT cannot find the program as a COM or EXE file in
- the current directory or anywhere in the PATH.
-
- If none of the above are true, XT will execute the command
- directly, i.e., without reloading the command processor.
-
-
- Revision history
- ----------------
- Version 1.00 - 9/8/86
- Original version
-
-
- Copyright/License/Warranty
- --------------------------
- This document and the current version of the program file XT.EXE
- ("the software") are copyrighted by the author. The copyright
- owner hereby licenses you to: use the software; make as many
- copies of the program and documentation as you wish; give such
- copies to anyone; and distribute the software and documentation
- via electronic means. There is no charge for any of the above.
-
- However, you are specifically prohibited from charging, or
- requesting donations, for any such copies, however made; and
- from distributing the software and/or documentation with
- commercial products without prior permission. An exception is
- granted to not-for-profit user's groups, which are authorized to
- charge a small fee (not to exceed $7) for materials, handling,
- postage, and general overhead. NO FOR-PROFIT ORGANIZATION IS
- AUTHORIZED TO CHARGE ANY AMOUNT FOR DISTRIBUTION OF COPIES OF
- THE SOFTWARE OR DOCUMENTATION, OR TO INCLUDE COPIES OF THE
- SOFTWARE OR DOCUMENTATION WITH SALES OF THEIR OWN PRODUCTS.
-
- There is no restriction on the use of this software in
- commercial or institutional environments.
-
- No copy of the software may be distributed or given away without
- this document; and this notice must not be removed.
-
- There is no warranty of any kind, and the copyright owner is not
- liable for damages of any kind. By using this free software,
- you agree to this.
-
- The software and documentation are:
-
- Copyright (c) 1986 by
- Christopher J. Dunford
- 10057-2 Windstream Drive
- Columbia, Maryland 21044
- (301) 992-9371
-